#include <string.h>
#include <stdio.h>
#include <stdlib.h> 

#include "global.h"  

/* Handles the arrival of a login message */
int handle_login_message(int fd, char *buffer, int nbytes);

/* Handles the arrival of a logout message */ 
int handle_logout_message(int fd, char *buffer, int nbytes);

/* Handles the arrival of a msg-post message */ 
int handle_msg_post_message(int fd, char *buffer, int nbytes);